package com.zhang.apidriver.remote;

import com.zhang.internalcommon.dto.Car;
import com.zhang.internalcommon.dto.DriverUser;
import com.zhang.internalcommon.dto.DriverUserWorkStatus;
import com.zhang.internalcommon.dto.ResponseResult;
import com.zhang.internalcommon.response.DriverUserExistsResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-12
 */
@FeignClient("service-driver-user")
public interface ServiceDriverClient {
	@PutMapping("/user")
	public ResponseResult updateUser(@RequestBody DriverUser driverUser);

	@GetMapping("/check-driver/{driverPhone}")
	public ResponseResult<DriverUserExistsResponse> getUser(@PathVariable("driverPhone") String driverPhone);

	@GetMapping("/car")
	public ResponseResult<Car> getCarById(@RequestParam Long carId);

	@PostMapping("/driver-user-work-status")
	public ResponseResult changeWorkStatus(@RequestBody DriverUserWorkStatus driverUserWorkStatus);

	@GetMapping("/driver-car-binding-relationship")
	public ResponseResult getDriverCarBindingRelationship(@RequestParam String phone);
}
